package com.qujia.station.mapper;


import com.qujia.station.domain.OilEngine;
import com.qujia.station.domain.dto.OilEngineSumDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OilEngineMapper {

    int deleteByPrimaryKey(Long id);

    int insert(OilEngine record);

    int insertSelective(OilEngine record);

    OilEngine selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OilEngine record);

    int updateByPrimaryKey(OilEngine record);

    // 查询油机数据列表
    List<OilEngine> selectOilEngineList(OilEngine oilEngine);

    // 合计统计订单信息
    OilEngineSumDto getOilEngineSum(OilEngine oilEngine);

    List<String> getOilNameList(@Param("enterpriseId") Long enterpriseId);

    List<String> getOilGunList(@Param("enterpriseId") Long enterpriseId);

    List<OilEngine> selectOilEngineListByGun(OilEngine oilEngine);
}